test for equivalent fractions